

#-------------------------------------------------- 生成扫描轨迹 --------------------------------------------------
# 生成 trace -- phi
def create_scan_traces_phi(theta, phi_start, phi_end):
    traces = []
    for phi in range(phi_start, phi_end+1, 1):
        traces.append([theta, phi])
    return traces

# 生成 trace -- theta
def create_scan_traces_theta(theta_start, theta_end, phi):
    traces = []
    for theta in range(theta_start, theta_end + 1, 1):
        traces.append([theta, phi])
    return traces

# 生成 trace -- theta phi 各加1
def create_scan_traces_theta_phi(theta_start, phi_start, theta_phi_length):
    traces = []
    for i in range(theta_phi_length):
        theta = theta_start + i
        phi = phi_start + i
        traces.append([theta, phi])
    return traces